package com.msh.platform.elm.vo;
import javax.validation.constraints.NotBlank;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class TokenVO {
	@ApiModelProperty(value="token值")
    @NotBlank(message = "token不能为空")
    private String token;
	@ApiModelProperty(value="参数签名,把传递的除了sign以外的所有参数名跟参数值拼接起来并按照参数名来排序后再拼接起来（如果参数值是空的则这个参数不用拼接）格式如：passwd1234phone13799302333，" +
			"再把排序拼接后的字符串用md5来加密生成加密字符串如：1bf75efe48c08b4871dcb6027e8d29c0。" +
			"特别说明：如果传递的参数值是数组，则把所有数组元素拼接起来，如参数名ids的值是[1,2,3,4]则拼接格式如ids1234，如果参数值是个json数组，如参数名dqs的值是" + 
			"    [{\"dq\": \"1,2,3\",\r\n" + 
			"      \"dqType\": \"week\",\r\n" + 
			"      \"price\": 1000,\r\n" + 
			"      \"specId\": 1\r\n" + 
			"    },\r\n" + 
			"    {\"dq\": \"2,3,5\",\r\n" + 
			"      \"dqType\": \"week\",\r\n" + 
			"      \"price\": 900,\r\n" + 
			"      \"specId\": 2\r\n" + 
			"    }]，则拼接格式如dqsdq1,2,3dqTypeweekprice1000specId1dq2,3,4dqTypeweekprice900specId2")
    @NotBlank(message = "参数签名不能为空")
    private String sign;
}
